<?php

class Form_Design extends Form
{
	protected $_code = '';

	public function prepare()
	{

		$code = $this -> _code;

		list($spec, $children) = Nuo::getTable('core@form') -> getFormSpec($this -> getCode());
		$this->setOptions($spec);
		
		$this -> setChildren($children);

	}

	public function setCode($value)
	{
		$this -> _code = $value;
		return $this;
	}

	public function getCode()
	{
		return $this -> _code;
	}

}
